package com.quectel.cms.vo.datav;

import com.quectel.core.module.device.dto.datav.DeviceCountDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author rananxin
 * @date 2021/12/6 2:05 下午
 */
@Data
@Schema
public class FireSafetyCountDeviceVo {

    @Schema(description = "设备总数量")
    private Integer deviceCount;

    @Schema(description = "告警总数量")
    private Integer alarmCount;

    @Schema(description = "正常总数量 (在线&未告警)")
    private Integer normalCount;

    @Schema(description = "种类设备统计")
    private List<DeviceCountItem> deviceCountItems = new ArrayList<>();

    @Data
    @Schema
    @EqualsAndHashCode(callSuper = true)
    public static final class DeviceCountItem extends DeviceCountDto {

        @Schema(description = "种类编码")
        private String code;

        @Schema(description = "种类名称")
        private String name;

    }
}
